<?php
namespace app\lib;

use yii;

class ActionBase extends yii\base\Model{

    protected  function parseErrors2str($errors) {
        $result = "";
        if(empty($errors)) {
            return $result;
        }
        
        $values = [];
        foreach ($errors as $key=>$value) {
            $values[] = $value;
        }
        $result = implode(",", $errors);
        return $result;
    }
}